﻿using JESAI.HtmlTemplate.Pdf.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.HtmlTemplate.Pdf
{
    public interface IExportPdfByHtmlTemplate
    {
        Task<byte[]> ExportByHtmlTemplateAsync<T>(T data,string razorTemplate) where T : class;
        Task<byte[]> ExportByHtmlTemplatePersistAsync<T>(T data,string razorTemplate) where T : class;
        Task<byte[]> ExportByHtmlPersistAsync<T>(T data,string html) where T : class;
        Task<byte[]> ExportByHtmlAsync<T>(string html) where T : class;
        byte[] ExportByHtmlTemplate<T>(T data, string razorTemplate) where T : class;
        byte[] ExportByHtmlTemplatePersist<T>(T data, string razorTemplate) where T : class;
        byte[] ExportByHtmlPersist<T>(T data, string html) where T : class;
        byte[] ExportByHtml<T>(string html) where T : class;
    }
}
